//
//  HeConstants.m
//  HeJuBao
//
//  Created by chris on 15/10/28.
//  Copyright (c) 2015年 Chris. All rights reserved.
//

#import <UIKit/UIKit.h>

#define iOS7  [[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0

//定义使用masonry时候的6，6p比例
#define width568 [UIScreen mainScreen].bounds.size.width/320
#define height568 [UIScreen mainScreen].bounds.size.height/568

//屏幕宽高
#define kScreenW [[UIScreen mainScreen] bounds].size.width
#define kScreenH [[UIScreen mainScreen] bounds].size.height

#define AlertTitle @"和聚宝"
#define AlertUpdateButtonTitle @"更新"
#define AlertCloseButtonTitle @"关闭"
#define AlertOkButtonTitle @"确认"
#define AlertCancelButtonTitle @"取消"

//主基调色
#define UIBaseColor [UIColor colorWithRed:255/255.0 green:95/255.0 blue:25/255.0 alpha:1]

//线的颜色
#define lineColor [UIColor colorWithRed:219.0/255 green:219.0/255 blue:219.0/255 alpha:1]
#define color9B9B9B [UIColor colorWithRed:155.0/255 green:155.0/255 blue:155.0/255 alpha:1]
#define color4A4A4A [UIColor colorWithRed:74.0/255 green:74.0/255 blue:74.0/255 alpha:1]
#define colorF59d00 [UIColor colorWithRed:245.0/255 green:157.0/255 blue:1.0/255 alpha:1]

#define labelCustomFont @"XinGothic CiticPress"

//定义weakself，方便在block中使用self
#define WS(weakSelf)  __weak __typeof(&*self)weakSelf = self;

//#define BaseURL @"http://172.16.49.148:8080/%@" //测试环境
#define BaseURL @"https://cmf.cmpay.com/%@" //生产环境
//#define BaseURL @"https://cmf.cmpay.com:5143/%@" // 预投产环境

//获取闪屏页
#define getFlashPic @"usr/cas/v1/flash.do"
//版本检查
#define getVersion @"usr/cas/v1/chkVersion.do"

#define RspCDSucess @"00000"    //接口成功返回数据

//渠道标志
#define CHANNEL_ID @"HJB"

//定义手机型号区分
#define isiPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)

//请求加密数据
#define XXTEA_PROTOCOL_KEY @"J58l2qudG8uCeae4JcWBl2en9zv7xvFa"